|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Hi guys, I have the active.cgi script available at: http://www.arlo.net/ubb/hacks/active.txt However, I want the active topics to appear in two columns of one table with one rows. I am only using the SSI option (3). Can someone please help me fine tune this hack? Thanks much in advance.
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Its not too hard to modify.
But I dont exactly understand how you want your table to look. You want it in 2 columns, but why only one row? Wouldnt you want one row per line? Let me know and ill put some code together for you.
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Actually yes, you are right. Each topic would have a row. So say, I would like 30 topics to be displayed. Then 15 topics should be in one column, and the other 15 in the other column. I didn't know how each of the topic is displayed, but if you say it's a row per topic, that's fine.
Thanks for your help.
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Ahh easy, Ill get back to you soon, just a little busy at the moment but Ill do my best
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Hi BassTeq, I am looking forward to your mods 
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sorry mate, been flat stick Ill take a look at it now and see what I can do. Ok now I dont have access to a ubb atm so I havent tested this. This assumes you were calling active topics via SSI, option #3 You'll have to play around with the tags if you want to change the look of the table and stuff, but if you get stuck let me know. find this replace with this As I said, any probs, just let me know.
I can't afford a good signature editor
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sorry replace it with the below, for some reason the ubb put extra semi colans in.
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Thanks bassteq,
I patched the file, however the output is a single column table that has the number of rows = number of active topics to display.
Actually, what I wanted was a two column display with (if total display count is 30) 15 in each column alligned properly.
Any help would be appreciated much. Thanks in advance.
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Ok Il check it out when I have access to my test area and ill work it out for you.
I can't afford a good signature editor
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Ok easy fix, in my code find change to Now if you want some help cleaning up the layout let me know, PS, it will work for any number of topic you give it, 10, 20 30 etc... Cheers BassTeQ
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
BassTeq, it worked!!! Thanks very much for your patience and help. Hey can you tell me how to completely reset my index (search) ? Can I delete some specific file and then rebuild my index? Also, whenever I delete any thread in any forum, do I have to re-build the search index always? Thanks again!!
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
No problems.
To update your index go to your CP, on the left click INDEX
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Hi again BassTeq, I am a perl novice, so I don't understand the mods, but they DO work I have one last request re: this hack, can you set it up so that the table width = 95% and it's alligned to the left? Also, before hacking it, could you please test it also? Thanks much in advance as always.
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Change this to this Sorry havent got time to test it, but it should work
I can't afford a good signature editor
|
|
|
|
|
Joined: Sep 2001
Posts: 194
Member
|
|
Member
Joined: Sep 2001
Posts: 194 |
Actually I tried that exactly, but it really hosed up the layout of the page... Can you test it out when you have the time please? Thanks again.
|
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Here is my example you will need to chnage this to this [ 10-11-2001: Message edited by: BassTeQ ]
I can't afford a good signature editor
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 21,080
Joined: March 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 696
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
|
|
|
|